#!/usr/bin/python

x = ['a', 'aa', 'abc', 'david','son of bitch']
x.sort(key = len)
print(x)

y = x[:]
y.sort(reverse = True)
print(y)


